<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023/9/5
  Time: 9:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Register</title>
    <style>
       *{
           margin: 0;
           padding: 0;
       }
       body{
           background-color: lightgray;
       }
    </style>
</head>
<body>
<h1 >修改图书</h1>
<form action="/updateBook?id=${bookById.id}" method="post">
    <div>
        <label>书名：</label>
        <input type="text" name="book_name" value="${bookById.book_name}">
        <br>
        <label>作者：</label>
        <input type="text" name="book_author" value="${bookById.book_author}">
        <br>
        <label>出版时间：</label>
        <input style="width: 260px;text-align: center" type="date" name="book_time" value="<fmt:formatDate value='${bookById.book_time}' pattern='yyyy-MM-dd' />">
        <br>
        <label>简介：</label>
        <input type="text" name="book_content" value="${bookById.book_content}">
        <br>
        <label>类型：</label>
        <input type="text" name="book_type" value="${bookById.book_type}">
        <br>
        <input style="width: 150px" type="submit" value="修改">
        <br>
        <h4><a href="/bookList">返回</a></h4>
    </div>
</form>
</body>
</html>
